home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / turbovis / tvtoyc01.zip / HELP.H < prev    next >
C/C++ Source or Header  |  1994-01-07  |  2KB  |  72 lines

  1. /* ------------------------------------------------------------------------*/
  2. /*                                                                         */
  3. /*   HELP.H                                                                */
  4. /*                                                                         */
  5. /*   Copyright (c) Borland International 1991                              */
  6. /*   All Rights Reserved.                                                  */
  7. /*                                                                         */
  8. /*   defines the classes THelpViewer and THelpWindow                       */
  9. /*                                                                         */
  10. /* ------------------------------------------------------------------------*/
  11.  
  12. #if !defined( __HELP_H )
  13. #define __HELP_H
  14.  
  15. #define Uses_TStreamable
  16. #define Uses_ipstream
  17. #define Uses_opstream
  18. #define Uses_TObject
  19. #define Uses_TPoint
  20. #define Uses_TRect
  21. #define Uses_TEvent
  22. #define Uses_TScroller
  23. #define Uses_TScrollBar
  24. #define Uses_TWindow
  25. #include <tv.h>
  26.  
  27. #define HELPEXTENSIONS
  28. #include <helpbase.h>
  29.  
  30. // THelpViewer
  31.  
  32. class THelpViewer : public TScroller
  33. {
  34. public:
  35.  
  36.     THelpViewer( const TRect&, TScrollBar*, TScrollBar*, THelpFile*, ushort );
  37.     ~THelpViewer();
  38.  
  39.     virtual void changeBounds( const TRect& );  // fix Help-3
  40.     virtual void draw();
  41.     virtual TPalette& getPalette() const;
  42.     virtual void handleEvent( TEvent& );
  43.     void makeSelectVisible( int, TPoint&, uchar&, int& );
  44.     void switchToTopic( int );
  45.  
  46.     THelpFile *hFile;
  47.     THelpTopic *topic;
  48.     int selected;
  49.  
  50. #ifdef HELPEXTENSIONS
  51.     static int oldSelected[THelpFile::maxOldTopics+1];
  52. #endif
  53. };
  54.  
  55. // THelpWindow
  56.  
  57. class THelpWindow : public TWindow
  58. {
  59. public:
  60.  
  61.     THelpWindow( THelpFile*, ushort );
  62.  
  63.     virtual TPalette& getPalette() const;
  64. };
  65.  
  66.  
  67. extern void notAssigned( opstream& s, int value );
  68.  
  69. extern TCrossRefHandler crossRefHandler;
  70.  
  71. #endif  // __HELP_H
  72.